Skip to content

Conversation

@xsuchy
Copy link
Collaborator

@xsuchy xsuchy commented Jul 8, 2025

Today, almost no one is using the directory fullTestForGenerator/(license-id)/license/good/ for tests and storing more variants of licenses. Including me, because I take some existing license as an example. This new directory has been supported by the publisher for some time.
I suggest that we move all files from test/simpleTestForGenerator/${@}.txt to test/fullTestForGenerator/${@}/license/good/${@}.txt.
This is just a draft that moves MIT license and change test-one-license script (it will now pass for MIT but fail for anything else).

Let me know what do you think. If you would like it, I will draft a PR that moves all tests. But the final PR will be huge and hard to review. That is why I am making this draft first.

@xsuchy xsuchy marked this pull request as draft July 8, 2025 21:27
@jlovejoy
Copy link
Member

@goneall @swinslow - did either of you see this??

@goneall
Copy link
Member

goneall commented Oct 24, 2025

@jlovejoy - Just saw it now

@xsuchy - I would prefer to keep the simpleTestForGenerator directory since I would need to change some of my release workflows for the LicenseListPublisher. I agree it would be cleaner, but not enough benefit for the costs IMHO.

@xsuchy
Copy link
Collaborator Author

xsuchy commented Oct 25, 2025

The benefit for me is that when we alter the markup of the existing license - especially when we alter <alt>, then we can accidentally break the matching of the old license (e.g., BSD license with these huge list of ALTs)

@goneall
Copy link
Member

goneall commented Oct 25, 2025

The benefit for me is that when we alter the markup of the existing license - especially when we alter <alt>, then we can accidentally break the matching of the old license (e.g., BSD license with these huge list of ALTs)

I believe the CI tests both directories, so any such errors should be caught.

I thought of one other issue - we currently take the "canonical" text from the simple test directory. This change was made in response to issue raised that the white space did not precisely match the original license text. If we merge these into a single directory, we would no longer be able to distinguish which text we should use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants